package com.weishu.house.controller;


import com.weishu.common.core.web.controller.BaseController;
import com.weishu.common.core.web.page.TableDataInfo;
import com.weishu.house.entity.SfTermination;
import com.weishu.house.model.SfTerminationModel;
import com.weishu.house.service.ISfTerminationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gao
 * @since 2021-05-25
 */
@RestController
@RequestMapping("/sf-termination")
public class SfTerminationController extends BaseController {

    @Autowired
    private ISfTerminationService iSfTerminationService;

    /**
     * 解约协议查询
     * @param sfTerminationModel
     * @return
     */
    @GetMapping("getSfTerminationList")
    public TableDataInfo getSfTerminationList(SfTerminationModel sfTerminationModel) {
        startPage();
        List<SfTermination> list = iSfTerminationService.getSfTerminationList(sfTerminationModel);
        return getDataTable(list);
    }
}
